/**
 * Copyright (C), 2020, 安徽贝慕信息科技有限公司
 * FileName: AppDetailDTO
 * Author:   Allen
 * Date:     2020/8/23
 * Description: app配置信息DTO
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bim.marvel.openapi.client.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 〈AppDetail返回信息实体〉
 *
 * @author Allen
 * @date 2020/8/10
 * @since 1.0.0
 */
@Getter
@Setter
@ToString
@ApiModel(value = "AppDetailDTO", description = "AppDetail返回信息实体")
public class AppDetailDTO extends BaseDTO implements Serializable {

    /**
     * appId，数据来源为oauth服务的clientId
     */
    @ApiModelProperty(value = "AppId", name = "appId", example = "test")
    private String appId;
    /**
     * appSecret,数据来源为oauth服务的clientSecret
     */
    @ApiModelProperty(value = "AppSecret", name = "appSecret", position = 2, example = "1234567890123456")
    private String appSecret;
    /**
     * sessionKey,通过oauth服务获取的token，并使用md5签名得到的key值
     */
    @ApiModelProperty(value = "sessionKey", name = "sessionKey", position = 3, example = "Esv123464774F532143AB")
    private String sessionKey;
    /**
     * 可访问服务的token，通过oauth获取服务
     */
    @ApiModelProperty(value = "token", name = "token", position = 4, example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9."
            + "eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ."
            + "SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c")
    private String token;
    /**
     * 超期时间
     */
    @ApiModelProperty(value = "超期时间", name = "expiredDate", position = 5, example = "2021-05-25 12:30:00")
    private Date expiredDate;

}
